cmake_minimum_required(VERSION 3.8)#指定cmake的可执行最低版本
project(my_project)#自定义项目名词

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
add_executable(main src/main.cpp src/Armor_blue.cpp src/Armor_red.cpp ${SRC})#将源文件打包成可执行文件

# 寻找OpenCV库 
find_package (OpenCV REQUIRED)
#提供一个搜索opencv头文件暂时的根目录
include_directories (${OpenCV_INCLUDE_DIRS})
 
#将opencv库链接到可执行文件
target_link_libraries (main ${OpenCV_LIBS} ${CERES_LIBRARIES})
#上面这行的 main 是 add_executable (main demo.cpp)里的 main 